#基础镜像
FROM nginx

#设置参数
ENV CSC_CLOUD="/home/csc"
ENV PATH=${CSC_CLOUD}/bin:$PATH

COPY bin ${CSC_CLOUD}/bin
COPY conf ${CSC_CLOUD}/conf

#设置工作目录
WORKDIR ${CSC_CLOUD}

# apt-get update && apt-get install vim -y && \
RUN chmod u+x ./bin/docker-entrypoint.sh && rm -f /etc/nginx/nginx.conf && mv conf/nginx.conf /etc/nginx/

EXPOSE 80/tcp

ENTRYPOINT ["docker-entrypoint.sh"]

